package com.xm.settlement.model;
import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xm.settlement.commons.utils.JsonUtils;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2017/3/1.
 */
@TableName(value = "app_goods_type")
public class AppGoodsType implements Serializable{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 上级分类 */
    private Long pid;

    /**是否启动(1：启动 0：未启动)*/
    @TableField(value = "trunon_status")
    private Integer trunonStatus;

    /** 商品分类名称 */
    private String name;

    /** 图标 */
    @JsonProperty("iconCls")
    private String icon;

    @TableField(value = "create_time")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "create_id")
    private Long createId;

    @TableField(value = "update_time")
    private Date updateTime;

    /** 修改人 */
    @TableField(value = "update_id")
    private Long updateId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Integer getTrunonStatus() {
        return trunonStatus;
    }

    public void setTrunonStatus(Integer trunonStatus) {
        this.trunonStatus = trunonStatus;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String goodsTypeName) {
        this.name = goodsTypeName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
